package com.lujieni.provider.controller;


import com.lujieni.provider.service.impl.UserService;
import com.lujieni.shared.dto.UserDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
@Slf4j
public class UserController {

    @Autowired
    private UserService userService;

    @PostMapping("/register")
    public boolean register(@RequestBody UserDTO userDTO){
        return userService.register(userDTO);
    }


}
